﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YT.Commons
{
    public enum SystemModules
    {
        
        MeniereDisease=0,
        SUDDENDEAFNESS=1,
        Dizziness=2,
        NOSE=3,
        Others=4
    }
    public enum RangeType
    { Big, Small, BigEqual, SamllEqual, Like, Equal };
    public enum FormStatus
    {
        AddNew = 0,//let the Form Can be Edit and give the form default value
        Update,//let the Form Changed to Edit from the Query status
        Query,//Get datat from Meta and Diaplay them to Form and form can't be Edit
        Delete,//Clear the Page Content and Save the Change to Meta
        Loading //show forms is loading and still not show  .
    }
    public enum SqlOption
    {
        SqlPartTableName = 0,
        SqlPartMain = 1,
        SqlPartWhere = 2,
        SqlPartOrderBy = 3,
        SqlPartInner = 4,
        SqlPartAll = 5
    }

    public enum DtlTitleType
    { 
        Single=0,
        Mulit,
        Remark    
    }


    public enum ExceptionType
    {
        System = 0,
        User = 1
    }


    public enum DateFormatOption
    {
        DateFmtMDY = 0,
        FmtDtp,
        DateFmtMD,
        DateFmtYMD,
        DateFmtMY
    }
    public enum DataType
    {
        String,
        DateTime,
        Integer,
        Numeric,
        Bool,
        Byte
    }


    public enum TitleType
    {
        MeniereDisease=0,
        SuddenDeafness=1,
        Dizziness =2,
        NOSE=3,
        OTHERS=4    
    }

    public enum TopicType
    {
        SickHistory = 0,  //病史调查
        ExamBeforeTreatTitle,  //治疗前检查
        TreatmentEffectAfterTreate, //治疗结束后综合疗效评估
        UntowardEffectTitle,  //治疗后不良反应报告
        TreatmentEffectTitle,  //疗效评估
        JacobsonTitle,  //眩晕问卷和量化评估表 和 主观评价
        Others
    }

    public enum JobocoType
    { 
        TreatEffect=0,
        AfterTreat,
        TreatEffect_Hurry,
        TreatEffect_Watch,
        TreatEffect_Sure
    }

    public struct  LogStruct
    {
        public string strSickRecID;
        public string strTypeDesc; //检查项目的描述
        public TitleType titleType;  //是哪个模块
        public DateTime datExamDate; //检查的日期
        public string strExamSeqNo; //如果有seqno（多次检查）等，就要填此字段
        public string strExamRecID; //如果没有SeqNo, 就要填RecID
    }
}
